home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _FF50495111224F37A74ADB7DF7BC91AC < prev   
Text File  |  2005-02-04  |  12KB  |  252 lines

  1.         <xsl:stylesheet version='1.0' 
  2.                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3.                 xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4.                 xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5.                 xmlns:slash='http://purl.org/rss/1.0/modules/slash/'
  6.                 xmlns:dc='http://purl.org/dc/elements/1.1/' 
  7.                 exclude-result-prefixes='content slash dc'>
  8.           
  9.           <xsl:output method='xml' indent='yes' /> 
  10.  
  11.     <!-- channel group newspaper -->
  12.           <xsl:template match="newspaper[@type='group']">
  13.             <html>
  14.               <head>
  15.             <title><xsl:value-of select='title'/></title>
  16.             <!-- <base href="{//channel/link}" /> -->
  17.             <style><![CDATA[
  18.             body        { background:#000000;color:#CCCCCC;font-family:"Times New Roman", Times, serif; font-weight: bold; font-size:10pt; margin:2pt; padding:0pt; }
  19.             table {
  20.             font-family:"Times New Roman", Times, serif;
  21.             Arial;
  22.             color:#FFFFFF;
  23.             cell-padding:2pt;
  24.             background:#ECE9D8;
  25.             width:100%;
  26.             height:30px;
  27.             border-top:1px solid #FFFFFF;
  28.             border-bottom:1px solid #999999;
  29.             border-right-width: 1px;
  30.             border-left-width: 1px;
  31.             border-right-style: solid;
  32.             border-left-style: solid;
  33.             border-right-color: #999999;
  34.             border-left-color: #FFFFFF;
  35.             font-weight: bold;
  36.             }
  37.             .title        {
  38.             font-size:9pt;
  39.             font-weight: normal;
  40.             }
  41.             .date        { font-size:10pt; }
  42.             div.content { color:#FFFFFF;font-family:"Times New Roman", Times, serif;font-size:10pt;margin:10pt;padding:5pt;  }
  43.             a
  44.             {
  45.             text-decoration: none;
  46.             }
  47.             td.title a:link      { color:#FFFFFF; }
  48.             td.title a:visited   { color:#FFFFFF; }
  49.             td.title a:hover         { color:#FF0000; }
  50.             a:link      { color:#FFFFFF; }
  51.             a:visited   {
  52.             color:#FFFFFF;            
  53.             }
  54.             a:hover        { color:#FF0000;font-weight:normal; }
  55.             ]]></style>
  56.               </head>
  57.               <body>
  58.             <p>MS-DOS 5.1<br/>
  59.             (C) Copyright 1985-1991 Microsoft Corp.
  60.               </p>
  61.               <xsl:for-each select="//channel">
  62.               <p>    C:\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>cd c:\<xsl:value-of  disable-output-escaping='yes' select='current()/title'/>\readmail<br/>
  63.               <xsl:variable name='currentchannel'><xsl:value-of select='current()/title'/></xsl:variable>        
  64.             C:\<xsl:value-of  disable-output-escaping='yes' select='current()/title'/>\READMAIL\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>rmail.exe +rss 
  65.               </p>
  66.             <xsl:for-each select='current()//item'>        
  67.             <div class='content'>
  68.               <xsl:choose>
  69.                 <xsl:when test='current()/author'>
  70.                   <u>AUTHOR:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='current()/author'/><br />
  71.                 </xsl:when>
  72.                 <xsl:when test='current()/dc:creator'>
  73.                   <u>AUTHOR:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='current()/dc:creator'/><br />
  74.                 </xsl:when>                
  75.               </xsl:choose>
  76.               <u>TITLE:</u><a href="{current()/link}"><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of disable-output-escaping='yes' select='current()/title' /></a><br/>
  77.               <u>DATE:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='current()/pubDate' /><br/><br/>
  78.               <xsl:choose> <xsl:when test='current()/xhtml:body'> <xsl:copy-of select='current()/xhtml:body'/> 
  79.               </xsl:when> <xsl:when test='current()/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/> 
  80.               </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='current()/description'/> 
  81.               </xsl:otherwise> </xsl:choose> <br/>
  82.               <br/>
  83.               </div>                          
  84.             </xsl:for-each> 
  85. C:\<xsl:value-of  disable-output-escaping='yes' select='current()/parent::node()/title'/>\READMAIL\ATT\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text><a href='{current()/link}'>ReadOn.exe</a><br/> 
  86.               </xsl:for-each>
  87.               </body></html>
  88.             </xsl:template>
  89.  
  90.  
  91.           <!-- channel newspaper -->
  92.           <xsl:template match="newspaper[@type='channel']">
  93.             <html>
  94.               <head>
  95.             <title><xsl:value-of select='//channel/title'/></title>
  96.             <base href="{//channel/link}" />
  97.             <style><![CDATA[
  98.             body        { background:#000000;color:#CCCCCC;font-family:"Times New Roman", Times, serif; font-weight: bold; font-size:10pt; margin:2pt; padding:0pt; }
  99.             table {
  100.             font-family:"Times New Roman", Times, serif;
  101.             Arial;
  102.             color:#FFFFFF;
  103.             cell-padding:2pt;
  104.             background:#ECE9D8;
  105.             width:100%;
  106.             height:30px;
  107.             border-top:1px solid #FFFFFF;
  108.             border-bottom:1px solid #999999;
  109.             border-right-width: 1px;
  110.             border-left-width: 1px;
  111.             border-right-style: solid;
  112.             border-left-style: solid;
  113.             border-right-color: #999999;
  114.             border-left-color: #FFFFFF;
  115.             font-weight: bold;
  116.             }
  117.             .title        {
  118.             font-size:9pt;
  119.             font-weight: normal;
  120.             }
  121.             .date        { font-size:10pt; }
  122.             div.content { color:#FFFFFF;font-family:"Times New Roman", Times, serif;font-size:10pt;margin:10pt;padding:5pt;  }
  123.             td.title a:link      { color:#FFFFFF; }
  124.             td.title a:visited   { color:#FFFFFF;text-decoration:underline; }
  125.             td.title a:hover         { color:#FF0000;text-decoration:underline;font-weight:normal; }
  126.             a
  127.             {
  128.             text-decoration: none;
  129.             }
  130.             a:link      { color:#FFFFFF; }
  131.             a:visited   {
  132.             color:#FFFFFF;        
  133.             }
  134.             a:hover        { color:#FF0000;font-weight:normal; }
  135.             ]]></style>
  136.               </head>
  137.               <body>
  138.             <p>MS-DOS 5.1<br/>
  139.             (C) Copyright 1985-1991 Microsoft Corp.
  140.               </p>
  141.               <p>    C:\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>cd c:\<xsl:value-of  disable-output-escaping='yes' select='//channel/title'/>\readmail<br/>
  142.  C:\<xsl:value-of  disable-output-escaping='yes' select='//channel/title'/>\READMAIL\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>rmail.exe +rss 
  143. </p>
  144.  
  145.             <xsl:for-each select='//item'>            
  146.               <div class='content'>
  147.               <xsl:choose>
  148.                 <xsl:when test='current()/author'>
  149.                   <u>AUTHOR:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='current()/author'/><br />
  150.                 </xsl:when>
  151.                 <xsl:when test='current()/dc:creator'>
  152.                   <u>AUTHOR:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='current()/dc:creator'/><br />
  153.                 </xsl:when>                
  154.               </xsl:choose>
  155.               <u>TITLE:</u><a href="{current()/link}"><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of disable-output-escaping='yes' select='current()/title' /></a><br/>
  156.               <u>DATE:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='current()/pubDate' /><br/><br/>
  157.               <xsl:choose> <xsl:when test='current()/xhtml:body'> <xsl:copy-of select='current()/xhtml:body'/> 
  158.               </xsl:when> <xsl:when test='current()/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/> 
  159.               </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='current()/description'/> 
  160.               </xsl:otherwise> </xsl:choose> <br/>
  161.               <br/>
  162.               </div>                 
  163.             </xsl:for-each>  
  164. C:\<xsl:value-of  disable-output-escaping='yes' select='//channel/title'/>\READMAIL\ATT\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text><a href='{//channel/link}'>ReadOn.exe</a><br/>        
  165.               </body></html>
  166.             </xsl:template>
  167.  
  168.             
  169.             <!-- single news item -->
  170.             <xsl:template match="newspaper[@type='newsitem']">
  171.               <html>
  172.                 <head>
  173.                   <title><xsl:value-of select='//item/title'/></title>
  174.                   <base href="{//item/link}" />
  175.                   <style><![CDATA[
  176.                   body        { background:#000000;color:#CCCCCC;font-family:"Times New Roman", Times, serif; font-weight: bold; font-size:10pt; margin:2pt; padding:0pt; }
  177.                   table {
  178.                   font-family:"Times New Roman", Times, serif;
  179.                   Arial;
  180.                   color:#FFFFFF;
  181.                   cell-padding:2pt;
  182.                   background:#ECE9D8;
  183.                   width:100%;
  184.                   height:30px;
  185.                   border-top:1px solid #FFFFFF;
  186.                   border-bottom:1px solid #999999;
  187.                   border-right-width: 1px;
  188.                   border-left-width: 1px;
  189.                   border-right-style: solid;
  190.                   border-left-style: solid;
  191.                   border-right-color: #999999;
  192.                   border-left-color: #FFFFFF;
  193.                   font-weight: bold;
  194.                   }
  195.                   .title        {
  196.                   font-size:9pt;
  197.                   font-weight: normal;
  198.                   }
  199.                   .date        { font-size:10pt; }
  200.                   div.content { color:#FFFFFF;font-family:"Times New Roman", Times, serif;font-size:10pt;margin:10pt;padding:5pt;  }
  201.                   td.title a:link      { color:#FFFFFF; }
  202.                   td.title a:visited   { color:#FFFFFF; }
  203.                   td.title a:hover         { color:#FF0000;font-weight:normal; }
  204.                       a
  205.                 {
  206.                 text-decoration: none;
  207.                 }
  208.                   a:link      { color:#FFFFFF; }
  209.                   a:visited   {
  210.                   color:#FFFFFF;               
  211.                   }
  212.                   a:hover        { color:#FF0000;font-weight:normal; }
  213.                   ]]></style>
  214.                 </head>
  215.                 <body>
  216.                   <p>MS-DOS 5.1<br/>
  217.                   (C) Copyright 1985-1991 Microsoft Corp.<br/>
  218.                   <br/>
  219.                   C:\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>cd c:\readmail<br/>
  220.                   C:\READMAIL\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>rmail.exe 
  221.                   +rss<xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text><xsl:value-of select='//item/category'/></p>
  222.                   <div class='content'>
  223.                 <xsl:choose>
  224.                   <xsl:when test='//item/author'>
  225.                     <u>AUTHOR:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='//item/author'/><br />
  226.                   </xsl:when>
  227.                   <xsl:when test='//item/dc:creator'>
  228.                     <u>AUTHOR:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='//item/dc:creator'/><br />
  229.                   </xsl:when>                
  230.                 </xsl:choose>
  231.                 <u>TITLE:</u><a href="{//item/link}"><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of disable-output-escaping='yes' select='//item/title' /></a><br/>
  232.                 <u>DATE:</u><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> <xsl:value-of select='//item/pubDate' /><br/><br/>
  233.                 <xsl:choose> <xsl:when test='//item/xhtml:body'> <xsl:copy-of select='//item/xhtml:body'/> 
  234.                 </xsl:when> <xsl:when test='//item/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/> 
  235.                 </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='//item/description'/> 
  236.                 </xsl:otherwise> </xsl:choose> <br/>
  237.                 <br/>
  238.                 </div>C:\READMAIL\ATT\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text><a href='{//item/link}'>ReadOn.exe</a><br/>
  239.                 <xsl:choose> 
  240.                   <xsl:when test='//item/comments'>C:\READMAIL\ATT\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>
  241.                   <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  242.                   comments.exe -<xsl:value-of select='//item/slash:comments'/><xsl:text disable-output-escaping='yes'></a></xsl:text>    <br/></xsl:when>
  243.                   <xsl:when test='//item/slash:comments'>
  244.                     C:\READMAIL\ATT\<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>
  245.                     comments.exe -<xsl:value-of select='//item/slash:comments'/><br/>
  246.                   </xsl:when>
  247.                 </xsl:choose>
  248.                 <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  249.                 <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  250.                 </body></html>
  251.                   </xsl:template>
  252.                 </xsl:stylesheet>